import { defineStore } from 'pinia';

interface LevelState {
  flowId: string | null;
}

export const useFileStore = defineStore('fileStore', {
  state: (): LevelState => ({
    flowId: null,
  }),
  // 可以在这里定义 actions，mutations，getters 等
  actions: {
    setflowId(newflowId: string) {
      this.flowId = newflowId;
    },
  },
  getters: {
    getFlowId: state => state.flowId,
  },
});
